﻿using UnityEngine;
using UnityEngine.UI;
using System.Collections;

public class messageCCl : MonoBehaviour {

	// Use this for initialization
    public GameObject nunmber;
    public InputField input;
    public GameObject subBtn;
    public manCCL player;
    void Awake() 
    {
       player= GameObject.FindGameObjectWithTag("Player").GetComponent<manCCL>();
    }
	void Start () {
        nunmber.SetActive(false);
        //subBtn.SetActive(true);
//        print("玩家当前的分数" + player.numberCount);
	}
      
	
	// Update is called once per frame
    public void ReGame() 
    {
        Application.LoadLevel(Application.loadedLevel);
    }
    public void ActiveSubCountBtn() 
    {
        if (player.numberCount <= playerPrefer.subNumder && playerPrefer.subNumder>=playerPrefer.count)
        {
   
            subBtn.SetActive(false);
        }
        else
        {
            subBtn.SetActive(true);

        }
    }
}
